﻿using AutoMapper;
using MachineVision.Domain;
using MachineVision.Service.Dto;

namespace MachineVision.Service
{
    public class AutoMapperConfig : Profile
    {
        public AutoMapperConfig()
        {
            CreateMap<TemperatureInfo, TemperatureRes>();
            CreateMap<TemperatureReq, TemperatureInfo>();//.ForMember(s=>s.Id,a=>a.Ignore());

            //CreateMap<List<TemperatureInfo>, List<TemperatureRes>>();
            CreateMap<WarningInfo, Warning>();
            CreateMap<Warning, WarningInfo>();
            CreateMap<MissionWorkNum, MissionNum>();
            CreateMap<MissionNum, MissionWorkNum>();
            CreateMap<MissionHistoryInfo, MissionHistory>();
            CreateMap<MissionHistory, MissionHistoryInfo>();
            CreateMap<Menu, MenuData>();
        }
    }
}